package com.mo.system.permission.dao;

import com.mo.global.model.system.Job;
import com.mo.global.model.system.Module;
import com.mo.global.model.system.Role;
import com.mo.global.model.system.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther:Lang
 * @Date:2022-12-08
 * @Time:14:13
 * @Description:TODO
 */
@Mapper
@Repository
public interface IPermissionDao {
  Staff queryStaffByNameAndPassword(@Param("name") String username,@Param("password") String password);

  Job queryJobByStaff(Staff staff);

  Role queryRoleByStaff(Staff staff);

  List<Module> queryModuleByStaff(Staff staff);
}
